﻿<%@ Register TagPrefix="ucCommon" TagName="Common" Src="../Common/Inc/Common.ascx" %>
<%@ Register TagPrefix="ucTop" TagName="Top" Src="../Common/Inc/Top.ascx" %>
<%@ Register TagPrefix="ucMenu" TagName="Menu" Src="../Common/Inc/Menu.ascx" %>
<%@ Register TagPrefix="ucTabTitle" TagName="TabTitle" Src="../Common/Inc/TabTitle.ascx" %>
<%@ Register TagPrefix="ucCopyright" TagName="Copyright" Src="../Common/Inc/Copyright.ascx" %>
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Etc1013m.aspx.cs" Inherits="Updms.Etc.Etc1013m" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<title>▒ UPDMS [Etc1013m] ▒▒▒▒▒▒▒▒▒▒</title>
<ucCommon:Common id="Common" runat="server"></ucCommon:Common>
</head>
<body>
<form id="form1" runat="server">
<asp:ScriptManager runat="server" id="ScriptManager1" EnableScriptGlobalization="true"></asp:ScriptManager>

<table id="table_frame">
	<tr>
		<td id="top_area" colspan="2">
			<!-- Top 시작 -->
			<ucTop:Top id="Top" runat="server"></ucTop:Top>
			<!-- Top 끝 -->
		</td>
	</tr>
	<tr>
		<td id="menu_area">
			<!-- 메뉴 시작 -->
			<ucMenu:Menu id="Menu" runat="server"></ucMenu:Menu>
			<!-- 메뉴 끝 -->
		</td>
		<td id="contents_area">
			<!-- 제목 시작 -->
			<ucTabTitle:TabTitle id="TabTitle" TagPrefixs="Etc1013m" runat="server"></ucTabTitle:TabTitle>
			<!-- 제목 끝 -->
			<!-- AJAX 시작 -->
			<asp:UpdatePanel ID="UpdatePanel1" runat="server">
			<ContentTemplate>
			<!-- 버튼 시작 -->
			<div class="button_area">
				<asp:linkbutton id="ibtn_favorite" Text="즐겨찾기" runat="server" CssClass="ibtn ibtn_favorite"></asp:linkbutton>
				<asp:linkbutton id="ibtn_upload" Text="업로드" runat="server" CssClass="ibtn ibtn_upload" OnClientClick="goCalenderUploadPage()"></asp:linkbutton>
				<asp:linkbutton id="ibtn_search" Text="검색" runat="server" CssClass="ibtn ibtn_search" OnClick="ibtn_search_Click"></asp:linkbutton>
			</div>
			<!-- 버튼 끝 -->
			<!-- 검색 시작 -->
			<table class="table_search">
				<tr>
					<td class="lbl" width="11%"><asp:Literal id="ltr_search_layout" Text="레이아웃" runat="server" /></td>
					<td class="ctl" width="22%"><asp:RadioButtonList id="rbl_layout" runat="server" RepeatDirection="Horizontal" RepeatLayout="Flow" CssClass="rbl_flow"></asp:RadioButtonList></td>
					<td class="lbl" width="11%"><asp:Literal id="ltr_search_base_ym" Text="기준년월" runat="server" /></td>
					<td class="ctl" width="22%">
						<ul class="horizontal">
							<li style="width:60%;"><asp:dropdownlist id="ddl_search_base_year" runat="server" CssClass="ddl"></asp:dropdownlist></li>
							<li style="width:40%;"><asp:dropdownlist id="ddl_search_base_month" runat="server" CssClass="ddl">
										<asp:ListItem Value="01">01</asp:ListItem>
										<asp:ListItem Value="02">02</asp:ListItem>
										<asp:ListItem Value="03">03</asp:ListItem>
										<asp:ListItem Value="04">04</asp:ListItem>
										<asp:ListItem Value="05">05</asp:ListItem>
										<asp:ListItem Value="06">06</asp:ListItem>
										<asp:ListItem Value="07">07</asp:ListItem>
										<asp:ListItem Value="08">08</asp:ListItem>
										<asp:ListItem Value="09">09</asp:ListItem>
										<asp:ListItem Value="10">10</asp:ListItem>
										<asp:ListItem Value="11">11</asp:ListItem>
										<asp:ListItem Value="12">12</asp:ListItem>
									</asp:dropdownlist></li>
						</ul>
					</td>
					<td class="lbl" width="11%"><asp:Literal id="ltr_search_category" Text="범주" runat="server" /></td>
					<td class="ctl" width="22%"><img src="../Common/Images/application_form.png" align="absmiddle" alt="multi_check" class="hand" onclick="showHiddenDiv('div_search_category', event);" /></td>
				</tr>
				<tr>
					<td class="lbl"><asp:Literal id="ltr_search_title" Text="제목" runat="server" /></td>
					<td class="ctl"><asp:textbox id="txt_search_title" runat="server" Width="98%" CssClass="ib_b"></asp:textbox></td>
					<td class="lbl"><asp:Literal id="ltr_search_location" Text="장소" runat="server" /></td>
					<td class="ctl"><asp:textbox id="txt_search_location" runat="server" Width="98%" CssClass="ib_b"></asp:textbox></td>
					<td class="lbl"><asp:Literal id="ltr_search_contents" Text="내용" runat="server" /></td>
					<td class="ctl"><asp:textbox id="txt_search_contents" runat="server" Width="98%" CssClass="ib_b"></asp:textbox></td>
				</tr>
			</table>
			<!-- 검색 끝 -->
			<!-- 리스트셋 시작 -->
			<table cellspacing="0" cellpadding="0" width="100%" border="0">
				<tr>
					<td>
						<table cellspacing="0" cellpadding="0" width="100%" border="0">
							<tr>
								<td style="padding:0 0 0 400px">
									<table id="tabel_btn_month" class="control" runat="server">
										<tr>
											<td style="padding:1px;"><asp:linkbutton id="ibtn_prev_month" ToolTip="전월" runat="server" OnClick="ibtn_prev_month_Click"><img src="../Common/Images/arrow_rect_left.gif" alt="전월" /></asp:linkbutton></td>
											<td style="padding:1px;"><asp:Label ID="lbl_this_month" CssClass="sub_title" runat="server" /></td>
											<td style="padding:1px;"><asp:linkbutton id="ibtn_this_month" ToolTip="당월" runat="server" OnClick="ibtn_this_month_Click"><img src="../Common/Images/control_rect_stop.gif" alt="당월" /></asp:linkbutton></td>
											<td style="padding:1px;"><asp:linkbutton id="ibtn_next_month" ToolTip="차월" runat="server" OnClick="ibtn_next_month_Click"><img src="../Common/Images/arrow_rect_right.gif" alt="차월" /></asp:linkbutton></td>
										</tr>
									</table>
									<table id="tabel_btn_year" class="control" runat="server">
										<tr>
											<td style="padding:1px;"><asp:linkbutton id="ibtn_prev_year" ToolTip="전년" runat="server" OnClick="ibtn_prev_year_Click"><img src="../Common/Images/arrow_rect_left.gif" alt="전년" /></asp:linkbutton></td>
											<td style="padding:1px;"><asp:Label ID="lbl_this_year" CssClass="sub_title" runat="server" /></td>
											<td style="padding:1px;"><asp:linkbutton id="ibtn_this_year" ToolTip="당년" runat="server" OnClick="ibtn_this_year_Click"><img src="../Common/Images/control_rect_stop.gif" alt="당년" /></asp:linkbutton></td>
											<td style="padding:1px;"><asp:linkbutton id="ibtn_next_year" ToolTip="차년" runat="server" OnClick="ibtn_next_year_Click"><img src="../Common/Images/arrow_rect_right.gif" alt="차년" /></asp:linkbutton></td>
											<td><a href="#this_month" class="sbtn sbtn_arrow_b div_right" style="margin:0 0 0 20px;" title="당월"></a></td>
										</tr>
									</table>
								</td>
							</tr>
							<tr>
								<td align="right">
									<div class="div_left" style="margin:2px 0 0 0;"><asp:checkbox id="cb_scroll_enabled" runat="server" Checked="false" ToolTip="Scroll Enabled"></asp:checkbox></div>
									<table cellspacing="0" cellpadding="0" border="0" class="div_right">
										<tr>
											<td style="padding-left:8px"><span class="icon sicon_cal_AE001"></span><asp:Literal id="ltr_person_work" Text="개인업무" runat="server" /></td>
											<td style="padding-left:8px"><span class="icon sicon_cal_AE002"></span><asp:Literal id="ltr_family_work" Text="가족업무" runat="server" /></td>
											<td style="padding-left:8px"><span class="icon sicon_cal_AE003"></span><asp:Literal id="ltr_comp_work" Text="본사업무" runat="server" /></td>
											<td style="padding-left:8px"><span class="icon sicon_cal_AE004"></span><asp:Literal id="ltr_project" Text="프로젝트" runat="server" /></td>
											<td style="padding-left:8px"><span class="icon sicon_cal_AE005"></span><asp:Literal id="ltr_dev_plan" Text="개발일정" runat="server" /></td>
											<td style="padding-left:8px"><span class="icon sicon_cal_AE006"></span><asp:Literal id="ltr_training" Text="트레이닝" runat="server" /></td>
										</tr>
									</table>
								</td>
							</tr>
							<tr>
								<td>
									<asp:GridView ID="GridView1" CssClass="table_gridview" GridLines="None" runat="server" AutoGenerateColumns="False" OnRowDataBound="GridView1_RowDataBound">
										<Columns>
											<asp:BoundField DataField="Sun" HeaderText="일" HtmlEncode="False" HeaderStyle-ForeColor="Red">
												<ItemStyle HorizontalAlign="Left" Width="10%" />
											</asp:BoundField>
											<asp:BoundField DataField="Mon" HeaderText="월" HtmlEncode="False" >
												<ItemStyle HorizontalAlign="Left" Width="12%" />
											</asp:BoundField>
											<asp:BoundField DataField="Tue" HeaderText="화" HtmlEncode="False" >
												<ItemStyle HorizontalAlign="Left" Width="15%" />
											</asp:BoundField>
											<asp:BoundField DataField="Wed" HeaderText="수" HtmlEncode="False" >
												<ItemStyle HorizontalAlign="Left" Width="15%" />
											</asp:BoundField>
											<asp:BoundField DataField="Thu" HeaderText="목" HtmlEncode="False" >
												<ItemStyle HorizontalAlign="Left" Width="15%" />
											</asp:BoundField>
											<asp:BoundField DataField="Fri" HeaderText="금" HtmlEncode="False" >
												<ItemStyle HorizontalAlign="Left" Width="15%" />
											</asp:BoundField>
											<asp:BoundField DataField="Sat" HeaderText="토" HtmlEncode="False" HeaderStyle-ForeColor="Blue">
												<ItemStyle HorizontalAlign="Left" Width="13%" />
											</asp:BoundField>
										</Columns>
									</asp:GridView>
								</td>
							</tr>
						</table>
						<!-- 월별 끝 -->
					</td>
				</tr>
			</table>
			<!-- 리스트셋 끝 -->
			<!-- 모달영역(상세일정정보) 시작 -->
			<asp:Panel ID="Panel1" style="display:none;" runat="server">
				<div class="div_box">
				<img id="img_close" src="../Common/Images/close.gif" class="hand" style="float:right;" onclick="hideDetail();" alt="닫기" /><br />
					<div class="sub_title_icon"><asp:Literal id="ltr_title" runat="server"></asp:Literal></div>
					<table id="table_detail_1" class="table_detail" style="width:500px;" runat="server">
						<tr>
							<td class="lbl" width="15%"><asp:Literal id="ltr_st_dt" Text="시작일" runat="server" /></td>
							<td class="ctl" width="35%"><asp:label id="lbl_st_dt" runat="server" Width="86%"></asp:label></td>
							<td class="lbl" width="15%"><asp:Literal id="ltr_ed_dt" Text="종료일" runat="server" /></td>
							<td class="ctl" width="35%"><asp:label id="lbl_ed_dt" runat="server" Width="86%"></asp:label></td>
						</tr>
						<tr>
							<td class="lbl"><asp:Literal id="ltr_category" Text="범주" runat="server" /></td>
							<td class="ctl"><asp:label id="lbl_category" runat="server"></asp:label></td>
							<td class="lbl"><asp:Literal id="ltr_location" Text="장소" runat="server" /></td>
							<td class="ctl"><asp:label id="lbl_location" runat="server" Width="99.5%"></asp:label></td>
						</tr>
						<tr>
							<td class="lbl"><asp:Literal id="ltr_contents" Text="내용" runat="server" /></td>
							<td class="ctl" colspan="3">
								<div style="height:178px;overflow-y:auto;">
									<asp:label id="lbl_contents" runat="server" Width="96.2%"></asp:label>
								</div>
							</td>
						</tr>
					</table>
				</div>
			</asp:Panel>
			<!-- 모달영역(상세일정정보) 끝 -->
			<div id="div_search_category" class="div_scroll div_multi_box" style="display:none;height:135px;width:90px;position:absolute;">
				<asp:CheckBoxList id="cbl_search_category" runat="server" RepeatDirection="Vertical" CssClass="cbl_vertical"></asp:CheckBoxList>
			</div>
			<!-- 설명 시작 -->
			<!-- 설명 끝 -->
			<!-- 카피라이트 시작 -->
			<ucCopyright:Copyright id="Copyright" runat="server"></ucCopyright:Copyright>
			<!-- 카피라이트 끝 -->
			<!-- 히든값 시작 -->
			<div id="hdn_data">
				<asp:label id="lbl_pk" runat="server"></asp:label>
				<asp:label id="lbl_search_flag" runat="server"></asp:label>
				<asp:linkbutton id="lbtn_view_detail" runat="server" OnClick="lbtn_view_detail_Click" />
				<input id="h_seq" type="hidden" name="h_seq" runat="server" />
			</div>
			<!-- 히든값 끝 -->
			<act:ModalPopupExtender ID="mpe_view_detail" runat="server"
				BehaviorID="mpe_view_detail_b"
				TargetControlID="lbtn_view_detail"
				PopupControlID="Panel1"
				CancelControlID="img_close"
				BackgroundCssClass="modalBackground" />
			</ContentTemplate>
			</asp:UpdatePanel>
			<!-- AJAX 끝 -->
		</td>
	</tr>
</table>

<asp:updateprogress AssociatedUpdatePanelID="UpdatePanel1" ID="updateProgress" runat="server">
	<progresstemplate>
		<div id="progressBackgroundFilter"></div>
		<div id="processMessage">
			<div id="processing"></div>
			<img src="../Common/Images/processing_img.gif" />
		</div>
	</progresstemplate>
</asp:updateprogress>

</form>
<script type="text/javascript" language="javascript" defer="defer">
	
	//상세보기
	function viewDetail(seq) {
		$("h_seq").value = seq;
		__doPostBack('lbtn_view_detail', '');
	}

	//상세 숨기기
	function hideDetail() {
		var mpeBehavior = $find('mpe_view_detail_b');
		mpeBehavior.hide();
	}

	/* This is high-level function. */
	function handle(delta, evt) {
		if ($("GridView1") != null) {
			var tableMinX = getPosX("GridView1");
			var tableMaxX = tableMinX + $("GridView1").offsetWidth;
			var tableMinY = getPosY("GridView1");
			var tableMaxY = tableMinY + $("GridView1").offsetHeight;
			var eventX = isIE() ? window.event.x : evt.clientX;
			var eventY = isIE() ? window.event.y : evt.clientY;

			if ($("cb_scroll_enabled").checked) {
				if (tableMinX < eventX && tableMaxX > eventX && tableMinY < eventY && tableMaxY > eventY) {
					if (delta < 0) {
						//휠다운(차월)
						if ($("ibtn_next_month") != null && !$("ibtn_next_month").disabled) {
							__doPostBack("ibtn_next_month", "");
						}
						//휠다운(차년)
						else if ($("ibtn_next_year") != null && !$("ibtn_next_year").disabled) {
							__doPostBack("ibtn_next_year", "");
						}
					} else {
						//휠업(전월)
						if ($("ibtn_prev_month") != null && !$("ibtn_prev_month").disabled) {
							__doPostBack("ibtn_prev_month", "");
						}
						//휠업(전년)
						else if ($("ibtn_prev_year") != null && !$("ibtn_prev_year").disabled) {
							__doPostBack("ibtn_prev_year", "");
						}
					}
				}
			}
		}
	}

	/* Event handler for mouse wheel event. */
	function wheel(event) {
		var delta = 0;
		if (!event) event = window.event;
		if (event.wheelDelta) {
			delta = event.wheelDelta / 120;
			if (window.opera) delta = -delta;
		} else if (event.detail) delta = -event.detail / 3;
		if (delta) handle(delta, event);
	}

	/* Initialization code. */
	if (window.addEventListener) {
		window.addEventListener('DOMMouseScroll', wheel, false);
	}
	window.onmousewheel = document.onmousewheel = wheel;

</script>
</body>
</html>